import java.util.Scanner;
abstract class Mammal{
    String name;
    abstract void makeSound();

    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
}
interface CanJump{
    void jump();
}
class Dog extends Mammal implements CanJump{
    String name;
    public Dog(String name){
        this.name = name;
    }
    public void jump(){
        System.out.println(name + " can jump high!");
    }
    public void makeSound(){
        System.out.println(name + ":汪汪汪!");
    }
    // public String getName(){
    //     return name;
    // }
    // public void setName(String name){
    //     this.name = name;
    // }
}